package com.example.aircraftwar2024.game;

import android.content.Context;
import android.os.Handler;
import android.os.Message;

import com.example.aircraftwar2024.ImageManager;
import com.example.aircraftwar2024.aircraft.AbstractEnemyAircraft;

import java.util.LinkedList;
import java.util.List;


public class EasyGame extends BaseGame{

    public EasyGame(Context context,Handler mHandler) {
        super(context,mHandler);
        this.backGround = ImageManager.BACKGROUND1_IMAGE;
        this.enemyMaxNumber = 2;
    }

    @Override
    void sendMessageToMHandler() {
        // 创建所需的消息对象
        Message msg = Message.obtain();
        msg.what = 0; // 消息标识
        msg.obj = "Easy Game-Game Over!"; // 消息内存存放
        msg.arg1=score;

        // 步骤4：在工作线程中 通过Handler发送消息到消息队列中
        super.mHandler.sendMessage(msg);
    }

    @Override
    protected void tick() {
    }

    /**
     * 简单模式没有 boss
     * @return
     */
    @Override
    protected List<AbstractEnemyAircraft> produceBoss() {
        return new LinkedList<>();
    }


}
